package org.example.myleet.p417;

import org.example.myleet.Utils.Assert;
import org.example.myleet.Utils.JsonUtils;
import org.example.myleet.Utils.Parser;

public class Main {
    public static void main(String[] args) {
        Solution solution = new Solution();
        Assert.isTrue("[[0,4],[1,3],[1,4],[2,2],[3,0],[3,1],[4,0]]".equals(JsonUtils.toJson(solution.pacificAtlantic(Parser.parse("[[1,2,2,3,5],[3,2,3,4,4],[2,4,5,3,1],[6,7,1,4,5],[5,1,1,2,4]]")))));
        Assert.isTrue("[[0,0],[0,1],[1,0],[1,1]]".equals(JsonUtils.toJson(solution.pacificAtlantic(Parser.parse("[[2,1],[1,2]]")))));
    }
}
